TGML Linear Gradient
<LinearGradient> creates a linear gradient brush for the stroke or fill area of the immediate parent.
LinearGradient works in conjunction with gradient stops, which describe the location and color of transition points in gradients. For more information, see the TGML Gradient Stop: <GradientStop> section.
Attribute | Type | Description |
---|---|---|
Attribute |
String |
The brush attribute of the parent ("Fill" or "Stroke"). |
EndPoint |
Point |
The ending coordinates of the linear gradient. See Remarks. |
SpreadMethod |
SpreadMethod |
Specifies how the gradient should be drawn outside of the specified gradient vector or space. See Remarks. |
StartPoint |
StartPoint |
The starting coordinates of the linear gradient. See Remarks. |
Remarks
StartPoint and EndPoint specify the starting and ending coordinates of the linear gradient. "0.0 , 0.0" represents the upper left corner of the element and "1.0 , 1.0" represents the lower right corner.
Example:
Different SpreadMethod values: